package cn.tedu._06interceptor.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v1/users/")
@Api(tags = "用户")
public class UserController {

    @GetMapping("reg")
    @ApiOperation(value = "注册")
    public String reg(){
        return "注册成功";
    }
    @GetMapping("login")
    @ApiOperation(value = "登录")
    public String login(){
        return "登录成功";
    }
    @GetMapping("currentUser")
    @ApiOperation(value="当前用户")
    public String currentUser(){
        return "获取当前用户成功";
    }
    @GetMapping("logout")
    @ApiOperation(value = "退出登录")
    public String logout(){
        return "退出登录成功";
    }
}
